<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container {
        width: 100%;
        height: 400px;
        display: flex;
        min-width: 800px;
      }
      .box1 {
        width: 200px;
        height: 100%;
        background-color: yellow;
      }
      .box2 {
        /* flex-grow: 1; */
        flex: 1;
        background-color: green;
        height: 100%;
      }
    </style>
  </head>
  <body>
    <!-- 两列布局：左边（宽度）固定，右边（宽度）自适应 -->
    <div class="container">
      <div class="box1"></div>
      <div class="box2"></div>
    </div>
  </body>
</html>
